package com.pig4cloud.pig.module.api.entity.promoter;

import com.baomidou.mybatisplus.annotation.*;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 推广员 结算单对象 promoter_settlement
 *
 * @author ruoyi
 * @date 2022-11-11
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("promoter_settlement")
public class PromoterSettlement implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 推广员id
     */
    private Integer promoterId;

    /**
     * 推广员 微信用户 id
     */
    private Integer promoterWxUserId;

    /**
     * 推广员微信open
     */
    private String promoterWxOpenId;

    private String promoterName;
    private String promoterPhone;

    /**
     * 流水号
     */
    private String tradeNo;

    /**
     * 总结算人数量
     */
    private Integer userCount;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 申请结算金额
     */
    private BigDecimal totalMoney;

    /**
     * 支付金额
     */
    private BigDecimal payMoney;

    /**
     * 支付状态
     */
    private Integer payState;

    /**
     * 打款时间
     */
    private Date payTime;

    /**
     * 请求数据
     */
    private String payStr;

    /**
     * 返回数据
     */
    private String rebackStr;

    /**
     * 错误码
     */
    private String errCodeDes;

    /**
     * 结果码
     */
    private String resultCode;

    /**
     * 审核管理员id
     */
    private Long checkSysUserId;

    /**
     * 审核管理员名称
     */
    private String checkSysUserName;

    /**
     * 审核状态  0 - 未审核 1 - 审核成功  2 - 审核失败
     */
    private Integer checkState;

    /**
     * 审核时间
     */
    private Date checkTime;

    /**
     * 审核结果
     */
    private String checkResult;

    /**
     * 确认打款人管理员id  财务人员
     */
    private Long submitSysUserId;

    /**
     * 确认打款人姓名
     */
    private String submitUserName;

    /**
     * 确认打款时间
     */
    private Date submitTime;

    /**
     * 确认打款结果
     */
    private String submitResult;

    /**
     * 单价
     */
    private BigDecimal singlePrice;


    /**
     * 结算开始日期
     */
    @TableField(exist = false)
    @Excel(name = "结算开始日期")
    private String beginDate;

    /**
     * 结算结束日期
     */
    @TableField(exist = false)
    @Excel(name = "结算结束日期")
    private String endDate;

    @TableField(exist = false)
    private String faceUrl;

     /*@Excel(name = "结算结束日期")
    private String endDate;
    @Excel(name = "结算结束日期")
    private String endDate;
    @Excel(name = "结算结束日期")
    private String endDate;
    @Excel(name = "结算结束日期")
    private String endDate;*/




}
